<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>axios拦截器设置</h1>
    <input type="text" id="ipt">
    <button id="comfirm">提交请求</button>
    <button id="cancel">取消请求</button>

    <script>
        //实现效果,点击提交按钮,将数据提交给后端,后端返回所对应的详细信息

        const oIpt = document.getElementById("ipt")
        const oComfirm = document.getElementById("comfirm")
        const oCancel = document.getElementById("ipt")

        oComfirm.onclick = function(){
            const iptValue = oIpt.value 
            console.log(iptValue);
        }
        
    </script>
</body>
</html>